<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>标签管理 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		<style type="text/css">
			#tags .label{
				padding:2px;				
				margin:5px;
				line-height: 150%;
				display: inline-block;
			}
			#tags .controls{
				margin-left:5px;
			}
		</style>
	</head>
	<body>
		<div class="workspace">
			{include file='core/views/vfs/vfs_navi.tpl'}
		    <div id="tags" class="accordion">
            	<div class="accordion-group">
              		<div class="accordion-heading">
                		<a href="#collapseOne" data-parent="#tags" data-toggle="collapse" class="accordion-toggle">
                  			自定义属性
                		</a>
              		</div>
              		<div class="accordion-body collapse in" id="collapseOne">
                		<div class="accordion-inner" id="flag-wrap">
                  			{foreach from=$flags item=item}
                  				<span id="tag_{$item.tag_id}" class="tags label {$labels|random}"><i class="icon-trash icon-white"></i>{$item.tag}</span>
                  			{/foreach}
                  			<br class="clear"/>
                  			<div class="controls">
				              	<div class="input-prepend input-append">
				              		<span class="add-on">属性</span><input type="text" size="16" id="new-flag" class="span2"><button id="btn-add-flag" type="button" class="btn btn-add"><i class="icon-plus"></i>添加</button>
				              	</div>
				            </div>
                  		</div>
              		</div>
            	</div>
            	<div class="accordion-group">
              		<div class="accordion-heading">
                		<a href="#collapseTwo" data-parent="#tags" data-toggle="collapse" class="accordion-toggle">标签</a>
              		</div>
              		<div class="accordion-body collapse" id="collapseTwo">
                		<div class="accordion-inner" id="tag-wrap">
                  			{foreach from=$tags item=item}
                  				<span id="tag_{$item.tag_id}" class="tags label {$labels|random}"><i class="icon-trash icon-white"></i>{$item.tag}</span>
                  			{/foreach}
                  			<br class="clear"/>
                  			<div class="controls">
				              	<div class="input-prepend input-append">
				              		<span class="add-on">标签</span><input type="text" size="16" id="new-tag" class="span1"><button id="btn-add-tag" type="button" class="btn btn-add"><i class="icon-plus"></i>添加</button>
				              	</div>
				            </div>
                		</div>
              		</div>
            	</div>            
          	</div>		    
		</div>
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'common.js'|shared}"></script>		
		<script type="text/javascript" src="tags.js"></script>
	</body>
</html>
